From df6ec7baaa4b5069f2e127a0036f877a54dde091 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 22 Mar 2023 14:53:06 +0100 Subject: [PATCH] Emit AccountPtr from pushNotificationsDisabled in Account rather than raw pointer Signed-off-by: Claudio Cambra --- src/libsync/account.cpp | 2 +- src/libsync/account.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsync/account.cpp b/src/libsync/account.cpp index cf59af7d5..5acb7897b 100644 --- a/src/libsync/account.cpp +++ b/src/libsync/account.cpp @@ -341,7 +341,7 @@ void Account::trySetupPushNotifications() return; } if (!_pushNotifications->isReady()) { - emit pushNotificationsDisabled(this); + emit pushNotificationsDisabled(sharedFromThis()); } if (!_pushNotificationsReconnectTimer.isActive()) { _pushNotificationsReconnectTimer.start(); diff --git a/src/libsync/account.h b/src/libsync/account.h index ae119758f..5e6c67318 100644 --- a/src/libsync/account.h +++ b/src/libsync/account.h @@ -461,7 +461,7 @@ signals: void appPasswordRetrieved(QString); void pushNotificationsReady(const OCC::AccountPtr &account); - void pushNotificationsDisabled(OCC::Account *account); + void pushNotificationsDisabled(const OCC::AccountPtr &account); void userStatusChanged(); -- 2.30.2